package com.fashop.mapper;

import org.springframework.stereotype.Component;

import com.fashop.bean.beacon.BeaconOut;
import com.fashop.jpa.Beacon;

@Component("beaconMapperOut")
public class BeaconMapperOut implements GenericMapper<Beacon, BeaconOut>{

	public BeaconOut map(final Beacon entrada) {
		BeaconOut beaconSalida=null;
		if(entrada!=null){
			beaconSalida.setAlias(entrada.getAlias());
			beaconSalida.setContador(entrada.getContador());
			beaconSalida.setGenerico1(entrada.getGenerico1());
			beaconSalida.setIdbeacon(entrada.getIdbeacon());
			beaconSalida.setLugar_idlugar(entrada.getLugar_idlugar());
			beaconSalida.setMajor(entrada.getMajor());
			beaconSalida.setMinor(entrada.getMinor());
			beaconSalida.setProximidad(entrada.getProximidad());
			beaconSalida.setUuid(entrada.getUuid());			
		}
		return beaconSalida;
	}

}
